package zhu.areas.recruit.service;
import zhu.areas.recruit.dao.IRecruitWaDAO;
import zhu.areas.recruit.data.CandidateApp;

//import zhu.areas.recruit.data.Resume;
public class RecruitWaServiceImpl  implements IRecruitWaService {
	private IRecruitWaDAO recriuitwaDAO;
	public Boolean addCandidateApp(CandidateApp candidateapp){
		
			this.recriuitwaDAO.saveCandidateApp(candidateapp);
			return true;
		
		
	}
	 
	public CandidateApp findcandidateappByApplierID( String propertyName,int ApID){
		
		return recriuitwaDAO.findCandidateAppByUniqueProperty(propertyName,ApID);
		
		
		
	}

	/*public Boolean addBothInfoBack(BothInfoBack bothinfoback){
		try{
			
			this.recriuitwaDAO.saveResume(bothinfoback);
			return true;
		}catch(Exception e){
			e.printStackTrace();
			return false;
		}*/	
		
	//}
	
	/*public Boolean addResume(Resume resume) {
		
		try{
		
			this.recriuitwaDAO.saveResume(resume);
			return true;
		}catch(Exception e){
			e.printStackTrace();
			return false;
		}
	}
	
	*/

	
	
	public IRecruitWaDAO getRecriuitwaDAO() {
		return recriuitwaDAO;
	}
	public void setRecriuitwaDAO(IRecruitWaDAO recriuitwaDAO) {
		this.recriuitwaDAO = recriuitwaDAO;
	}
}
